<?php

namespace App\Providers;

use App\Func\System\EmailSenderFunc;
use App\Func\User\UserFunc;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('userFunc', function () {
            return new UserFunc();
        });
        // 2024-1-09 disable facade
//        $this->app->singleton('emailSenderFunc', function () {
//            return new EmailSenderFunc();
//        });
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
}
